package com.zmn.oms.model.dto.factory;

import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * 类描述：厂商工单扩展数据（限厂商单）
 *
 * @author liuying
 * @date 2018-11-07 20:14
 */
@Data
@ToString(callSuper = true)
public class OrderFactoryDTO implements Serializable {

    private static final long serialVersionUID = 6635402991458875678L;

    /**
     * 厂商Id
     */
    @NotNull(message = "厂商不能为空")
    private Integer factoryId;

    /**
     * 厂商产品Id
     */
    @NotNull(message = "厂商产品不能为空")
    private Integer fcProductId;

    /**
     * 厂商产品数量
     */
    private Integer fcProductNumber;

    /**
     * 故障数据
     */
    private List<Integer> faultIdList;

    /**
     * 故障
     */
    private String fault;

    /**
     * 故障备注
     */
    @Size(max = 5000, message = "其它故障最多5000个字符")
    private String remark;

    /**
     * 后台产品ID
     */
    private Integer productId;

    /**
     * 价格表id
     */
    private Integer tariffId;
}
